<include file="./Tpl/Admin/header.html" />
<style>
	li{ margin-bottom:20px;}
	input{ margin-left:40px; height:25px; line-height:25px;}
</style>
<div class="main">
	<div class="main_title">
		<img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;矿机配置
	</div>
	<div class="list_body">
	    <form action="?s=Admin/Factory/save" method="post" id="formid">
        	<ul>
                <li>挖矿开始:<input type="text" name="start" value="{$c.start}" />
                挖矿结束<input type="text" name="end" value="{$c.end}" />按秒设置，0时为0秒24时为86400秒</li>
                <li>收货开始:<input type="text" name="shouhuostart" value="{$c.shouhuostart}" />
                收货结束<input type="text" name="shouhuoend" value="{$c.shouhuoend}" />按秒设置，0时为0秒24时为86400秒</li>
                <li>单天产量:<input type="text" name="oneDayNum" value="{$c.oneDayNum}" /></li>
               
             	 <li>描述:<textarea style="width:300px; height:200px; vertical-align:middle" name="jianjie" value="{$c.jianjie}">{$c.jianjie}</textarea>数值为秒</li>
                <li>是否开启挖矿:
                	<if condition="$c['iswakuang'] eq 1">
                    <input checked="checked" type="radio" name="iswakuang" value="1" />开启<input type="radio" name="iswakuang" value="0" />关闭 <else/>
                        <input type="radio" name="iswakuang" value="1" />开启<input checked="checked" type="radio" name="iswakuang" value="0" />关闭 </if>
                        </li>
                <li>选择挖矿产出币种：<select name='bizhong'>
                	<option>选择币种</option>
                	<foreach name='type' item='v'>
                    	<if condition="$v.id eq $c['bizhong']">
                        	<option selected="selected" value="{$v['id']}">{$v['name']}</option>
                            <else/><option value="{$v['id']}">{$v['name']}</option>
                        </if>
                	</foreach>
                </select>
                
                </li>   
                <li><input type="submit" value="修改" width="200" /></li>
            </ul>
		</form>
	</div>
    <style>
    	td{ border:1px solid #A0A0A4; text-align:center}
    </style>
    <table cellspacing=0 cellpadding=0 border=0 style="width:100%">
		    <tr>
			   <th width="5%">ID</th><th width="20%">种类</th><th width="10%">购买币种</th><th width="10%">赠送币种</th><th width="10%">算力</th><th>价格</th><th width="10%">数量</th><th width="20%">购买限制数量</th><th width="10%">操作</th>
			</tr>
			<volist name="f" id="v">
            	<tr>
                	<td>{$v.id}</td>
                    <td>{$v.name}</td>
                    <td>{$v.buytype}</td>
                     <td>{$v.zengsong}</td>
                    <td>{$v.suanli}</td>
                    <td>{$v.price}</td>
                    <td>{$v.num}</td>
                    <td>{$v.limitnum}</td>
                    <td><a href="?s=Admin/Factory/save_factory/id/{$v.id}">修改</a></td>
                </tr>
            </volist>
		</table>
</div>
<include file="./Tpl/Admin/footer.html" />